package scoder.pizza;

import scoder.factory.PizzaIngredientFactory;

public class HenanPizza extends Pizza {

    PizzaIngredientFactory factory;

    public HenanPizza(PizzaIngredientFactory factory) {
        this.factory = factory;
    }

    @Override
    public void prepare() {
        System.out.println("Preparing " + name);
        this.dough = factory.createDough();
        this.cheese = factory.createCheese();
        this.veggies = factory.createVeggies();
    }
}
